package org.jeecg.modules.demo.publicplace.service;

import org.jeecg.modules.demo.publicplace.entity.ZnzfPublicOpen;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 开放时间段
 * @Author: jeecg-boot
 * @Date:   2022-04-11
 * @Version: V1.0
 */
public interface IZnzfPublicOpenService extends IService<ZnzfPublicOpen> {

    /**
     * 查询公共场所的预约时间段列表
     * @param publicId
     * @return
     */
    List<ZnzfPublicOpen> getByPublicId(String publicId);

    /**
     * 根据预约时间段id
     * @param publicOpenId
     * @return
     */
    ZnzfPublicOpen queryZnzfPublicOpenById(String publicOpenId);

    int emptyCurrentReservationNumber();
}
